package cc.mrbird.febs.pedometer.service;

import cc.mrbird.febs.pedometer.entity.Batches;
import cc.mrbird.febs.pedometer.entity.Chicken;

import cc.mrbird.febs.common.entity.QueryRequest;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 鸡 列表 Service接口
 *
 * @author li
 * @date 2020-02-01 19:38:49
 */
public interface IChickenService extends IService<Chicken> {
    /**
     * 查询（分页）
     * @param request
     * @param chicken
     * @param batchesId
     * @return
     */
    IPage<Chicken> findChickens(QueryRequest request, Chicken chicken, Integer batchesId);

    /**
     * 查询（所有）
     *
     * @param chicken chicken
     * @return List<Chicken>
     */
    List<Chicken> findChickens(Chicken chicken);

    /**
     * 新增
     *
     * @param chicken chicken
     */
    void createChicken(Chicken chicken);

    /**
     * 修改
     *
     * @param chicken chicken
     */
    void updateChicken(Chicken chicken);

    /**
     * 删除
     *
     * @param chicken chicken
     */
    void deleteChicken(Chicken chicken);

    List<JSONObject> typeList();
}
